package com.twu.biblioteca;

import com.twu.biblioteca.Library.Library;
import com.twu.biblioteca.service.BookService;
import com.twu.biblioteca.service.LoginService;
import com.twu.biblioteca.service.MovieService;
import com.twu.biblioteca.tools.BookFactory;
import com.twu.biblioteca.tools.MovieFactory;
import com.twu.biblioteca.view.MessageView;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class BibliotecaApp {

    public static void main(String[] args) {
        MessageView messageView = new MessageView(System.out);
        BookService bookService = new BookService(BookFactory.initBooks());
        LoginService loginService = new LoginService();
        MovieService movieService = new MovieService(MovieFactory.initMovies());
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        Library library = new Library(messageView, bookService, loginService, movieService, reader);
        library.welcome();
        library.start();
    }





}
